INVT=0, WE=0, IER=0, CFF=0, PMODE=0, CFR=0, IEF=0, SE=0, OFFSET=0, HYSTCTR=00, COS=0, OPE=0, DMAEN=0, FILTER_CNT=000, EN=0
CMP Control Register 0
HYSTCTR | Comparator hard block hysteresis control. See chip data sheet to get the actual hystersis value with each level 0 (00): The hard block output has level 0 hysteresis internally. 1 (01): The hard block output has level 1 hysteresis internally. 2 (10): The hard block output has level 2 hysteresis internally. 3 (11): The hard block output has level 3 hysteresis internally. |
OFFSET | Comparator hard block offset control. See chip data sheet to get the actual offset value with each level 0 (0): The comparator hard block output has level 0 offset internally. 1 (1): The comparator hard block output has level 1 offset internally. |
FILTER_CNT | Filter Sample Count 0 (000): Filter is disabled. If SE = 1, then COUT is a logic zero (this is not a legal state, and is not recommended). If SE = 0, COUT = COUTA. 1 (001): 1 consecutive sample must agree (comparator output is simply sampled). 2 (010): 2 consecutive samples must agree. 3 (011): 3 consecutive samples must agree. 4 (100): 4 consecutive samples must agree. 5 (101): 5 consecutive samples must agree. 6 (110): 6 consecutive samples must agree. 7 (111): 7 consecutive samples must agree. |
EN | Comparator Module Enable 0 (0): Analog Comparator is disabled. 1 (1): Analog Comparator is enabled. |
OPE | Comparator Output Pin Enable 0 (0): When OPE is 0, the comparator output (after window/filter settings dependent on software configuration) is not available to a packaged pin. 1 (1): When OPE is 1, and if the software has configured the comparator to own a packaged pin, the comparator is available in a packaged pin. |
COS | Comparator Output Select 0 (0): Set CMPO to equal COUT (filtered comparator output). 1 (1): Set CMPO to equal COUTA (unfiltered comparator output). |
INVT | Comparator invert 0 (0): Does not invert the comparator output. 1 (1): Inverts the comparator output. |
PMODE | Power Mode Select 0 (0): Low Speed (LS) comparison mode is selected. 1 (1): High Speed (HS) comparison mode is selected, in VLPx mode, or Stop mode switched to Low Speed (LS) mode. |
WE | Windowing Enable 0 (0): Windowing mode is not selected. 1 (1): Windowing mode is selected. |
SE | Sample Enable 0 (0): Sampling mode is not selected. 1 (1): Sampling mode is selected. |
FPR | Filter Sample Period |
COUT | Analog Comparator Output |
CFF | Analog Comparator Flag Falling 0 (0): A falling edge has not been detected on COUT. 1 (1): A falling edge on COUT has occurred. |
CFR | Analog Comparator Flag Rising 0 (0): A rising edge has not been detected on COUT. 1 (1): A rising edge on COUT has occurred. |
IEF | Comparator Interrupt Enable Falling 0 (0): Interrupt is disabled. 1 (1): Interrupt is enabled. |
IER | Comparator Interrupt Enable Rising 0 (0): Interrupt is disabled. 1 (1): Interrupt is enabled. |
DMAEN | DMA Enable 0 (0): DMA is disabled. 1 (1): DMA is enabled. |